<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>YuTori Class: クラス TestofYuToriFactory</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 作成： Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'検索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">YuTori Class</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>メインページ</span></a></li>
      <li><a href="../../pages.html"><span>関連ページ</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>データ構造</span></a></li>
      <li><a href="../../files.html"><span>ファイル</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="検索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>データ構造</span></a></li>
      <li><a href="../../classes.html"><span>データ構造索引</span></a></li>
      <li><a href="../../inherits.html"><span>クラス階層</span></a></li>
      <li><a href="../../functions.html"><span>データフィールド</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public メソッド</a> &#124;
<a href="#pri-methods">Private メソッド</a>  </div>
  <div class="headertitle">
<div class="title">クラス TestofYuToriFactory</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="TestofYuToriFactory" --><table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public メソッド</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a095c5d389db211932136b53f25f39685">__construct</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a32d43156d9155b55c31155ca6ac4162e">TestofFactory</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a166109fc2607340029561cc5736c9eb5">TestofName</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a05a8a3b5812cb7362f9ffc818593a479">TestofInstance</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#aac26940c8db6bd209d79b8d3e2c5f955">TestofAdd</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a447c9f52b307fd1d315496a2c20ff165">TestofRemove</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#ac745cdeeaef1f219759fda3115213bb6">TestofChild</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a1338be7e663342710efa11fad787767f">TestofParent</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#aa39c0337e5e649f86330829af4efbd3b">TestofCall</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a095c5d389db211932136b53f25f39685">__construct</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#adbac3f4e879c7c1ad0b8c9fb14aa1706">TestofScalar</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#acbe20062b60c33376c0c388e90640b93">TestofBool</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a2e3b4fbe4dc05a568de62a8b5ff93236">TestofNull</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#aafa177430173d414e73d0c9716343609">TestofArray</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#aaf0ee24f84ac96485d62782ff7620fb0">TestofObject</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a631e5d3719fa622ec7d4931355369ea5">TestofCallable</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#ab4c436dc23938f6013cdf23c7412f85a">TestofY_Scalar</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a09ec4d72fa0f23b2e2f5ed9ae99cb2a2">TestofY_Bool</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a4f789c08771e5bea31cb0daf0d26e9ee">TestofY_Null</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a1d6b3a57ecf0640eb020de6a3c194813">TestofY_Array</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#aa827132b9c5ce5db3b1bf4d083e27688">TestofY_Object</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a606efce2f14c1457cc4693bbaef105e9">TestofNoUseName</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private メソッド</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($value, $type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($value, $type, $instance)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($value, $type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($value, $type, $instance)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> ($value, $type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($value, $type, $instance)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>説明</h2>
<div class="textblock"><p>factoryメソッドのテスト</p>
<dl class="since"><dt><b>から:</b></dt><dd>2012/02/22 </dd></dl>

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00048">48</a> 行で定義されています。</p>
</div><hr/><h2>コンストラクタとデストラクタ</h2>
<a class="anchor" id="a095c5d389db211932136b53f25f39685"></a><!-- doxytag: member="TestofYuToriFactory::__construct" ref="a095c5d389db211932136b53f25f39685" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__construct </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00049">49</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                $this-&gt;arrObj = array(
                        <span class="stringliteral">&#39;Null&#39;</span>=&gt;null,
                        <span class="stringliteral">&#39;Scalar&#39;</span>=&gt;<span class="stringliteral">&#39;Hello World!&#39;</span>,
                        <span class="stringliteral">&#39;Array&#39;</span>=&gt;array(<span class="charliteral">&#39;a&#39;</span>, <span class="charliteral">&#39;b&#39;</span>, <span class="charliteral">&#39;c&#39;</span>),
                        <span class="stringliteral">&#39;Object&#39;</span>=&gt;<span class="keyword">new</span> <a class="code" href="../../d7/d1e/classmy_cls.html">myCls</a>(),
                        <span class="stringliteral">&#39;Bool&#39;</span>=&gt;<span class="keyword">true</span>,
                );
                
                <span class="comment">// 試験を書き直すのが面倒なので、Rootオブジェクト代わりを作成しておく。</span>
                $this-&gt;obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, null);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a095c5d389db211932136b53f25f39685"></a><!-- doxytag: member="TestofYuToriFactory::__construct" ref="a095c5d389db211932136b53f25f39685" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__construct </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00008">8</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
        }
</pre></div>
</div>
</div>
<hr/><h2>関数</h2>
<a class="anchor" id="a4a3e53ed5866f9d3479eed7774cb2b18"></a><!-- doxytag: member="TestofYuToriFactory::_CommonTest_01" ref="a4a3e53ed5866f9d3479eed7774cb2b18" args="($value, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_CommonTest_01 </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00013">13</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                                        {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a4b839704e38ef5d56d64a49a5faaab02"></a><!-- doxytag: member="TestofYuToriFactory::_CommonTest_02" ref="a4b839704e38ef5d56d64a49a5faaab02" args="($value, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_CommonTest_02 </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00031">31</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                                        {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="acb5445c49069ad399abe2d10f430cad3"></a><!-- doxytag: member="TestofYuToriFactory::_CommonTest_03" ref="acb5445c49069ad399abe2d10f430cad3" args="($value, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_CommonTest_03 </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00049">49</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                                        {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value, <span class="stringliteral">&#39;testName&#39;</span>, array(0,1,2));
                $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a980180056766a87f45df2f1b2863a090"></a><!-- doxytag: member="TestofYuToriFactory::_CommonTestY_01" ref="a980180056766a87f45df2f1b2863a090" args="($value, $type, $instance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_CommonTestY_01 </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>instance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00021">21</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                                                    {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;セレクタ判定 &#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a3f2f42304698f8ab69b7fa8f3aa22b7a"></a><!-- doxytag: member="TestofYuToriFactory::_CommonTestY_02" ref="a3f2f42304698f8ab69b7fa8f3aa22b7a" args="($value, $type, $instance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_CommonTestY_02 </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>instance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00039">39</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                                                    {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , $value-&gt;getName(), <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , $value-&gt;getSelector(), <span class="stringliteral">&#39;セレクタ判定 &#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a24505b1811f4cd9f98f12e6f2757c6eb"></a><!-- doxytag: member="TestofYuToriFactory::_CommonTestY_03" ref="a24505b1811f4cd9f98f12e6f2757c6eb" args="($value, $type, $instance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_CommonTestY_03 </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>instance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00058">58</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                                                    {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value, null, array(0,1,2));
                $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , $value-&gt;getName(), <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , $value-&gt;getSelector(), <span class="stringliteral">&#39;セレクタ判定 &#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aac26940c8db6bd209d79b8d3e2c5f955"></a><!-- doxytag: member="TestofYuToriFactory::TestofAdd" ref="aac26940c8db6bd209d79b8d3e2c5f955" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofAdd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00133">133</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                    {
                $child = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;null&#39;</span>, null);
                $this-&gt;assertIdentical($child-&gt;get(), null, <span class="stringliteral">&#39;addにnull指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;null&#39;</span>, <span class="stringliteral">&#39;addにnull指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;null&#39;</span>)-&gt;pick() === $child-&gt;pick(), <span class="stringliteral">&#39;addにnull指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addにnull指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;scalar&#39;</span>, <span class="stringliteral">&#39;abc&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;get(), <span class="stringliteral">&#39;abc&#39;</span>, <span class="stringliteral">&#39;addに&quot;abc&quot;指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;scalar&#39;</span>, <span class="stringliteral">&#39;addに&quot;abc&quot;指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;scalar&#39;</span>)-&gt;pick() === $child-&gt;pick(), <span class="stringliteral">&#39;addに&quot;abc&quot;指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addに&quot;abc&quot;指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
                
                <span class="comment">// 同名上書き</span>
                $child = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;scalar&#39;</span>, 123);
                $this-&gt;assertIdentical($child-&gt;get(), 123, <span class="stringliteral">&#39;addに123指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;scalar&#39;</span>, <span class="stringliteral">&#39;addに123指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;scalar&#39;</span>)-&gt;pick() === $child-&gt;pick(), <span class="stringliteral">&#39;addに123指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addに123指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;array&#39;</span>, array(<span class="charliteral">&#39;a&#39;</span>,<span class="charliteral">&#39;b&#39;</span>));
                $this-&gt;assertTrue(is_array($child-&gt;get()), <span class="stringliteral">&#39;addに配列指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;array&#39;</span>, <span class="stringliteral">&#39;addに配列指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;array&#39;</span>)-&gt;pick() === $child-&gt;pick(), <span class="stringliteral">&#39;addに配列指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() ===
                        $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addに配列指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;object&#39;</span>, $obj = <span class="keyword">new</span> <a class="code" href="../../d7/d1e/classmy_cls.html">myCls</a> ());
                $this-&gt;assertIdentical($child-&gt;get(), $obj,
                <span class="stringliteral">&#39;addにオブジェクト指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;object&#39;</span>,
                <span class="stringliteral">&#39;addにオブジェクト指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;object&#39;</span>)-&gt;pick()
                        === $child-&gt;pick(), <span class="stringliteral">&#39;addにオブジェクト指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() ===
                        $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addにオブジェクト指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;add
                        (<span class="stringliteral">&#39;function&#39;</span>,<a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;myFunc&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>));
                $this-&gt;assertIdentical($child-&gt;get(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;addに関数指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;function&#39;</span>, <span class="stringliteral">&#39;addに関数指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;function&#39;</span>)-&gt;pick() === $child-&gt;pick(), <span class="stringliteral">&#39;addに関数指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addに関数指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;function&#39;</span>,<a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, array(<span class="keyword">new</span> <a class="code" href="../../d7/d1e/classmy_cls.html">myCls</a>(),
                        <span class="stringliteral">&#39;myMethod&#39;</span>), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>) );
                $this-&gt;assertIdentical($child-&gt;get(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;addにメソッド指定時、戻り値のgetの値が間違っています。&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;function&#39;</span>, <span class="stringliteral">&#39;addにメソッド指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;function&#39;</span>)-&gt;pick() === $child-&gt;pick(), <span class="stringliteral">&#39;addにメソッド指定時、childの戻り値とaddの戻り値が違います。&#39;</span>);
                
                $this-&gt;assertTrue($child-&gt;parent($this-&gt;obj-&gt;getName())-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;addにメソッド指定時、戻り値のparentが自分自身ではありません。&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aafa177430173d414e73d0c9716343609"></a><!-- doxytag: member="TestofYuToriFactory::TestofArray" ref="aafa177430173d414e73d0c9716343609" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00097">97</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                      {
                $arr = array(0,1,2);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);

                <span class="comment">// 連想配列の場合</span>
                $arr = array(<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>, <span class="charliteral">&#39;b&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, <span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;sugar&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);


                <span class="comment">// 二次元配列の場合</span>
                $arr = array(array(0,1,2),array(<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>, <span class="charliteral">&#39;b&#39;</span>=&gt;<span class="stringliteral">&#39;orage&#39;</span>),2);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
                
                <span class="comment">// 第三引数は共通化できないので個別で。</span>
                $arr = array(0,1,2);
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($arr, <span class="stringliteral">&#39;testName&#39;</span>, $arr);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;count() , 6, <span class="stringliteral">&#39;child数判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);

                $arr1 = array(0,1,2, <span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>);
                $arr2 = array(0,1,2, <span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, <span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>);
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($arr1, <span class="stringliteral">&#39;testName&#39;</span>, $arr2);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;count() , 9, <span class="stringliteral">&#39;child数判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , array(0,1,2,<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, 0,1,2, <span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>), <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , array(0,1,2,<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, 0,1,2,<span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>), <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2,<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>,0,1,2,<span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>), <span class="stringliteral">&#39;child判定&#39;</span>.print_r($res, 1));
        }
</pre></div>
</div>
</div>
<a class="anchor" id="acbe20062b60c33376c0c388e90640b93"></a><!-- doxytag: member="TestofYuToriFactory::TestofBool" ref="acbe20062b60c33376c0c388e90640b93" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofBool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00080">80</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                     {
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aa39c0337e5e649f86330829af4efbd3b"></a><!-- doxytag: member="TestofYuToriFactory::TestofCall" ref="aa39c0337e5e649f86330829af4efbd3b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofCall </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00323">323</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                     {
                <span class="comment">// nullのcallはnull返すだけ。</span>
                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;Test&#39;</span>, null);
                $this-&gt;assertIdentical($obj-&gt;call(), null, <span class="stringliteral">&#39;null型のcallの戻り値が正しくありません。&#39;</span>);

                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;Test&#39;</span>, <span class="stringliteral">&#39;test&#39;</span>);
                $this-&gt;assertIdentical($obj-&gt;call(), <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;scalar型のcallの戻り値が正しくありません。&#39;</span>);

                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;Test&#39;</span>, <span class="stringliteral">&#39;myFunc&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
                $this-&gt;assertIdentical($obj-&gt;call(), <span class="stringliteral">&#39;func!&#39;</span>, <span class="stringliteral">&#39;function型のcallの戻り値が正しくありません。&#39;</span>);
                $this-&gt;assertIdentical($obj-&gt;call(<span class="stringliteral">&#39;arg&#39;</span>), <span class="stringliteral">&#39;arg&#39;</span>, <span class="stringliteral">&#39;function型のcallに引数が渡されていません。&#39;</span>);

        }
</pre></div>
</div>
</div>
<a class="anchor" id="a631e5d3719fa622ec7d4931355369ea5"></a><!-- doxytag: member="TestofYuToriFactory::TestofCallable" ref="a631e5d3719fa622ec7d4931355369ea5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofCallable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00144">144</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                         {
                <span class="comment">// 第四引数指定から開始</span>
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;myFunc&#39;</span>, <span class="stringliteral">&#39;myFuncName&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
                $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getSelector() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;get() , <span class="stringliteral">&#39;myFunc&#39;</span>, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;Func!&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);

                <span class="comment">// メソッドの時</span>
                $func = array(<span class="keyword">new</span> <a class="code" href="../../d5/d45/classmy_class.html">myClass</a>(), <span class="stringliteral">&#39;func&#39;</span>);
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($func, <span class="stringliteral">&#39;myFuncName&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
                $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getSelector() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertTrue($y-&gt;get() == $func , <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;Method!&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);

                <span class="comment">// 存在しない関数</span>
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;myFunc2&#39;</span>, <span class="stringliteral">&#39;myFuncName2&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
                $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getName() , null, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getSelector() , null, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;get() , null, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;call() , null, <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertTrue($y-&gt;isEmpty(), <span class="stringliteral">&#39;isEmpty値判定&#39;</span>);

                <span class="comment">// 存在しないメソッド</span>
                $func = array(<span class="keyword">new</span> <a class="code" href="../../d5/d45/classmy_class.html">myClass</a>(), <span class="stringliteral">&#39;func2&#39;</span>);
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($func, <span class="stringliteral">&#39;myFuncName&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
                $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getName() , null, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;getSelector() , null, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;get() , null, <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($y-&gt;call() , null, <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertTrue($y-&gt;isEmpty(), <span class="stringliteral">&#39;isEmpty値判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ac745cdeeaef1f219759fda3115213bb6"></a><!-- doxytag: member="TestofYuToriFactory::TestofChild" ref="ac745cdeeaef1f219759fda3115213bb6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofChild </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00219">219</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                      {
                <span class="comment">// 形を作っておく。値は区別がつく程度に適当。</span>
                $a = $this-&gt;obj-&gt;add (<span class="charliteral">&#39;a&#39;</span>, <span class="stringliteral">&#39;value_a&#39;</span>);
                $b = $a-&gt;add (<span class="charliteral">&#39;b&#39;</span>, <span class="stringliteral">&#39;value_b&#39;</span>);
                $c = $b-&gt;add (<span class="charliteral">&#39;c&#39;</span>, <span class="stringliteral">&#39;value_c&#39;</span>);
                $a2 = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;a2&#39;</span>, <span class="stringliteral">&#39;value_a2&#39;</span>);
                $b2 = $a2-&gt;add (<span class="stringliteral">&#39;b2&#39;</span>, <span class="stringliteral">&#39;value_b2&#39;</span>);
                $b22 = $a2-&gt;add (<span class="stringliteral">&#39;b22&#39;</span>, <span class="stringliteral">&#39;value_b22&#39;</span>);
                $c2 = $b2-&gt;add (<span class="stringliteral">&#39;c2&#39;</span>, <span class="stringliteral">&#39;value_c2&#39;</span>);
                $c22 = $b2-&gt;add (<span class="stringliteral">&#39;c22&#39;</span>, <span class="stringliteral">&#39;value_c22&#39;</span>);
                $a3 = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;a3&#39;</span>, <span class="stringliteral">&#39;value_a3&#39;</span>);
                $b3 = $a3-&gt;add (<span class="stringliteral">&#39;b3&#39;</span>, <span class="stringliteral">&#39;value_b3&#39;</span>);
                $c3 = $b3-&gt;add (<span class="stringliteral">&#39;c3&#39;</span>, <span class="stringliteral">&#39;value_c3&#39;</span>);
                
                <span class="comment">// 文字列セレクタのテスト</span>
                <span class="comment">// 1段階</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="charliteral">&#39;a&#39;</span>)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;child文字列指定1段階(a)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39; a2 &#39;</span>)-&gt;pick() === $a2-&gt;pick(), <span class="stringliteral">&#39;child文字列指定1段階(a2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a3.&#39;</span>)-&gt;pick() === $a3-&gt;pick(), <span class="stringliteral">&#39;child文字列指定1段階(a3)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a4&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定1段階(a4、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 2段階</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a.b&#39;</span>)-&gt;pick() === $b-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a.b)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a2 . b2&#39;</span>)-&gt;pick() === $b2-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a2 . b2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a3 . b3 .&#39;</span>)-&gt;pick() === $b3-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a3 . b3 .)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="charliteral">&#39;b&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定1段階(b、2段階目に存在している)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a.b2&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定2段階(a.b2、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 3段階</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a.b.c&#39;</span>)-&gt;pick() === $c-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a.b.c)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a2 . b2 . c2&#39;</span>)-&gt;pick() === $c2-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a2 . b2 . c2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a3 . b3 . c3 .&#39;</span>)-&gt;pick() === $c3-&gt;pick(), <span class="stringliteral">&#39;child文字列指定2段階(a3 . b3 . c3        .)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;b.c&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定2段階(b.c、3段階目に存在している)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a.b.c2&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child文字列指定3段階(a.b.c2、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 数値セレクタのテスト</span>
                <span class="comment">// 1段階</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(0)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;child数値指定1段階(0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(1)-&gt;pick() === $a2-&gt;pick(), <span class="stringliteral">&#39;child数値指定1段階(1)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(2)-&gt;pick() === $a3-&gt;pick(), <span class="stringliteral">&#39;child数値指定1段階(2)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(3)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定1段階(3、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 2段階</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;0.0&#39;</span>)-&gt;pick() === $b-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(0.0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;1.0&#39;</span>)-&gt;pick() === $b2-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(1.0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;1.1.&#39;</span>)-&gt;pick() === $b22-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(1.1.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;0.1&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定2段階(0.1、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 3段階</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;0.0.0&#39;</span>)-&gt;pick() === $c-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(0.0.0)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;1.0.1&#39;</span>)-&gt;pick() === $c22-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(1.0.1)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;2.0.0.&#39;</span>)-&gt;pick() === $c3-&gt;pick(), <span class="stringliteral">&#39;child数値指定2段階(2.0.0.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;1.1.2&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定3段階(1.1.2、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 文字・数値混在</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a2.1&#39;</span>)-&gt;pick() === $b22-&gt;pick(), <span class="stringliteral">&#39;child混在指定(a2.1)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a.0.&#39;</span>)-&gt;pick() === $b-&gt;pick(), <span class="stringliteral">&#39;child混在指定(a.0.)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;a.1&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;child数値指定1段階(a.1、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// オブジェクトセレクタのテスト</span>
                $this-&gt;assertTrue($this-&gt;obj-&gt;child($a)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;childオブジェクト指定($a)の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child($b)-&gt;isEmpty(), <span class="stringliteral">&#39;childオブジェクト指定($b、存在しない)の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 戻り値の確認。</span>
                $this-&gt;assertTrue(get_class($this-&gt;obj-&gt;child(<span class="charliteral">&#39;a&#39;</span>)) === <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;childの戻り値がYuToriではありません。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="charliteral">&#39;a&#39;</span>)-&gt;getType() === <span class="stringliteral">&#39;scalar&#39;</span>, <span class="stringliteral">&#39;childの戻り値のgetTypeが間違っています。&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a32d43156d9155b55c31155ca6ac4162e"></a><!-- doxytag: member="TestofYuToriFactory::TestofFactory" ref="a32d43156d9155b55c31155ca6ac4162e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofFactory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00063">63</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                        {
                <span class="comment">// type = auto</span>
                <span class="keywordflow">foreach</span> ($this-&gt;arrObj as $Key=&gt;$Val) {
                        $type = constant(<span class="stringliteral">&#39;YuTori::TYPE_&#39;</span>.strtoupper($Key));
                        $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($Key, $Val);
                        $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;factoryがセレクタを返していません。&#39;</span>);
                        $this-&gt;assertIdentical($obj-&gt;getType(), $type, <span class="stringliteral">&#39;factoryが&#39;</span>.$Key.<span class="stringliteral">&#39;型を作成していません。&#39;</span>.$obj-&gt;getType());
                }

                <span class="comment">// type指定</span>
                <span class="keywordflow">foreach</span> ($this-&gt;arrObj as $Key=&gt;$Val) {
                        $type = constant(<span class="stringliteral">&#39;YuTori::TYPE_&#39;</span>.strtoupper($Key));
                        $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($Key, $Val, $type);
                        $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;型指定時、factoryがセレクタを返していません。&#39;</span>);
                        $this-&gt;assertIdentical($obj-&gt;getType(), constant(<span class="stringliteral">&#39;YuTori::TYPE_&#39;</span>.strtoupper($Key)), <span class="stringliteral">&#39;型指定時、factoryが&#39;</span>.$Key.<span class="stringliteral">&#39;型を作成していません。&#39;</span>);
                }

                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;Function&#39;</span>, Y::Func(<span class="stringliteral">&#39;myFunc&#39;</span>));
                $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;型指定時、factoryがセレクタを返していません。&#39;</span>);
                $this-&gt;assertIdentical($obj-&gt;getType(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型指定時、factoryがfunction型を作成していません。&#39;</span>);

                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;Function&#39;</span>, array(<span class="keyword">new</span> MyCls(), <span class="stringliteral">&#39;myMethod&#39;</span>), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
                $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;型指定時、メソッドを渡されたfactoryがセレクタを返していません。&#39;</span>);
                $this-&gt;assertIdentical($obj-&gt;getType(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型指定時、メソッドを渡されたfactoryがfunction型を作成していません。&#39;</span>);

                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>);
                $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;型指定時、factoryがセレクタを返していません。&#39;</span>);
                $this-&gt;assertIdentical($obj-&gt;getType(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>, <span class="stringliteral">&#39;型指定時、factoryがempty型を作成していません。&#39;</span>);

                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;abcdefg&#39;</span>);
                $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;存在しない型指定時、factoryがセレクタを返していません。&#39;</span>);
                $this-&gt;assertIdentical($obj-&gt;getType(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>, <span class="stringliteral">&#39;存在しない型指定時、factoryがempty型を作成していません。&#39;</span>);

                <span class="comment">// YuToriを指定</span>
                <span class="keywordflow">foreach</span> ($this-&gt;arrObj as $Key=&gt;$Val) {
                        $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($Key, $Val, $Key);
                        $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, $obj);
                        $this-&gt;assertIdentical(get_class($obj), <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;factoryに&#39;</span>.$Key.<span class="stringliteral">&#39;型YuToriを渡した時、セレクタを返していません。&#39;</span>);
                        $this-&gt;assertIdentical($obj-&gt;getType(), constant(<span class="stringliteral">&#39;YuTori::TYPE_&#39;</span>.strtoupper($Key)), <span class="stringliteral">&#39;factoryに&#39;</span>.$Key.<span class="stringliteral">&#39;型YuToriを渡した時、&#39;</span>.$Key.<span class="stringliteral">&#39;型を作成していません。&#39;</span>);
                }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a05a8a3b5812cb7362f9ffc818593a479"></a><!-- doxytag: member="TestofYuToriFactory::TestofInstance" ref="a05a8a3b5812cb7362f9ffc818593a479" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00118">118</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                         {
                $arrSub = $this-&gt;arrObj;
                <span class="comment">// 基本パターンは全て組み合わせる</span>
                <span class="keywordflow">foreach</span> ($arrSub as $srcKey=&gt;$srcVal) {
                        $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($srcKey, $srcVal);
                        <span class="keywordflow">foreach</span> ($this-&gt;arrObj as $dstKey=&gt;$dstVal) {
                                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($srcKey, $srcVal);
                                $this-&gt;assertTrue($obj-&gt;set ($dstVal) ===       $obj, $srcKey.<span class="stringliteral">&#39;型に&#39;</span>.$dstKey.<span class="stringliteral">&#39;型をsetした際の戻り値が自分自身ではありません。&#39;</span>);
                                $this-&gt;assertIdentical($obj-&gt;get(), $dstVal, $srcKey.<span class="stringliteral">&#39;型に&#39;</span>.$dstKey.<span class="stringliteral">&#39;型をsetした際の保持インスタンスが間違っています。&#39;</span>);
                        }
                }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a166109fc2607340029561cc5736c9eb5"></a><!-- doxytag: member="TestofYuToriFactory::TestofName" ref="a166109fc2607340029561cc5736c9eb5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00106">106</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                     {
                <span class="keywordflow">foreach</span> ($this-&gt;arrObj as $Key=&gt;$Val) {
                        $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($Key, $Val);
                        $this-&gt;assertIdentical($obj-&gt;getName(), $Key, <span class="stringliteral">&#39;YuToriが名称&#39;</span>.$Key.<span class="stringliteral">&#39;を保持していません。&#39;</span>);
                        $obj-&gt;setName (<span class="stringliteral">&#39;newName&#39;</span>);
                        $this-&gt;assertIdentical($obj-&gt;getName(), <span class="stringliteral">&#39;newName&#39;</span>, <span class="stringliteral">&#39;YuTori::setNameで名称&#39;</span>.$Key.<span class="stringliteral">&#39;が変更されませんでした。&#39;</span>);
                        $obj-&gt;setName (null);
                        $this-&gt;assertIdentical($obj-&gt;getName(), <span class="stringliteral">&#39;newName&#39;</span>, <span class="stringliteral">&#39;YuTori::setNameにnull指定時、名称&#39;</span>.$Key.<span class="stringliteral">&#39;が変更されました。&#39;</span>);
                }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a606efce2f14c1457cc4693bbaef105e9"></a><!-- doxytag: member="TestofYuToriFactory::TestofNoUseName" ref="a606efce2f14c1457cc4693bbaef105e9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofNoUseName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00247">247</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                           {
                $this-&gt;assertTrue(is_object(<a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;this&#39;</span>, <span class="stringliteral">&#39;thisSelector&#39;</span>)), <span class="stringliteral">&#39;this前後に文字がある場合は例外は発生しない&#39;</span>);

                $this-&gt;expectException(<span class="keyword">new</span> Exception (<span class="stringliteral">&#39;YuToriObject cannot be named &quot;this&quot;&#39;</span>), <span class="stringliteral">&#39;名称にthisを指定した時の例外&#39;</span>);
                <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;this&#39;</span>, <span class="stringliteral">&#39;this&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a2e3b4fbe4dc05a568de62a8b5ff93236"></a><!-- doxytag: member="TestofYuToriFactory::TestofNull" ref="a2e3b4fbe4dc05a568de62a8b5ff93236" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofNull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00090">90</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                     {
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aaf0ee24f84ac96485d62782ff7620fb0"></a><!-- doxytag: member="TestofYuToriFactory::TestofObject" ref="aaf0ee24f84ac96485d62782ff7620fb0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00136">136</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                $obj = <span class="keyword">new</span> stdClass();
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a1338be7e663342710efa11fad787767f"></a><!-- doxytag: member="TestofYuToriFactory::TestofParent" ref="a1338be7e663342710efa11fad787767f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofParent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00288">288</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                <span class="comment">// 形を作っておく。値は区別がつく程度に適当。</span>
                $a = $this-&gt;obj-&gt;add (<span class="charliteral">&#39;a&#39;</span>, <span class="stringliteral">&#39;value_a&#39;</span>);
                $b = $a-&gt;add (<span class="charliteral">&#39;b&#39;</span>, <span class="stringliteral">&#39;value_b&#39;</span>);
                $c = $b-&gt;add (<span class="charliteral">&#39;c&#39;</span>, <span class="stringliteral">&#39;value_c&#39;</span>);
                $a2 = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;a2&#39;</span>, <span class="stringliteral">&#39;value_a2&#39;</span>);
                $b2 = $a2-&gt;add (<span class="stringliteral">&#39;b2&#39;</span>, <span class="stringliteral">&#39;value_b2&#39;</span>);
                $b22 = $a2-&gt;add (<span class="stringliteral">&#39;b22&#39;</span>, <span class="stringliteral">&#39;value_b22&#39;</span>);
                $c2 = $b2-&gt;add (<span class="stringliteral">&#39;c2&#39;</span>, <span class="stringliteral">&#39;value_c2&#39;</span>);
                $c22 = $b2-&gt;add (<span class="stringliteral">&#39;c22&#39;</span>, <span class="stringliteral">&#39;value_c22&#39;</span>);
                $a3 = $this-&gt;obj-&gt;add (<span class="stringliteral">&#39;a3&#39;</span>, <span class="stringliteral">&#39;value_a3&#39;</span>);
                $b3 = $a3-&gt;add (<span class="stringliteral">&#39;b3&#39;</span>, <span class="stringliteral">&#39;value_b3&#39;</span>);
                $c3 = $b3-&gt;add (<span class="stringliteral">&#39;c3&#39;</span>, <span class="stringliteral">&#39;value_c3&#39;</span>);
                
                <span class="comment">// 文字列セレクタのテスト</span>
                $this-&gt;assertTrue($a-&gt;parent(<span class="stringliteral">&#39;test&#39;</span>)-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;parent文字列指定1段階の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($b-&gt;parent(<span class="stringliteral">&#39; a &#39;</span>)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;parent文字列指定2段階の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($c-&gt;parent(<span class="stringliteral">&#39;a3&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;parent文字列指定、存在しない値の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 数値セレクタのテスト</span>
                
                $this-&gt;assertTrue($a-&gt;parent(0)-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;parent数値指定1段階の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($b-&gt;parent(0)-&gt;pick() === $a-&gt;pick(), <span class="stringliteral">&#39;parent数値指定2段階の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($a-&gt;parent(3)-&gt;isEmpty(), <span class="stringliteral">&#39;parent数値指定、存在しない値の戻り値が違います。&#39;</span>);
                
                <span class="comment">// オブジェクトセレクタのテスト</span>
                $this-&gt;assertTrue($a-&gt;parent($this-&gt;obj)-&gt;pick() === $this-&gt;obj-&gt;pick(), <span class="stringliteral">&#39;parentオブジェクト指定の戻り値が違います。&#39;</span>);
                $this-&gt;assertTrue($b-&gt;parent($c)-&gt;isEmpty(), <span class="stringliteral">&#39;parentオブジェクト指定、存在しない値の戻り値が違います。&#39;</span>);
                
                <span class="comment">// 戻り値の確認。selector型の試験自体はまた今度。</span>
                $this-&gt;assertTrue(get_class($a-&gt;parent(<span class="stringliteral">&#39;test&#39;</span>)) === <span class="stringliteral">&#39;YuTori&#39;</span>, <span class="stringliteral">&#39;parentの戻り値がYuToriではありません。&#39;</span>);
                $this-&gt;assertTrue($a-&gt;parent(<span class="stringliteral">&#39;test&#39;</span>)-&gt;getType() === <span class="stringliteral">&#39;null&#39;</span>, <span class="stringliteral">&#39;parentの戻り値のgetTypeが間違っています。&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a447c9f52b307fd1d315496a2c20ff165"></a><!-- doxytag: member="TestofYuToriFactory::TestofRemove" ref="a447c9f52b307fd1d315496a2c20ff165" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofRemove </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../d1/d5d/system_8php_source.html">system.php</a> の <a class="el" href="../../d1/d5d/system_8php_source.html#l00196">196</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                $child = $this-&gt;obj-&gt;remove (<span class="stringliteral">&#39;null&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;removeにnull指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;null&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;removeにnull指定時、childの戻り値がfalseではありません。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;remove (<span class="stringliteral">&#39;scalar&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;removeに&quot;abc&quot;指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;scalar&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;removeに&quot;abc&quot;指定時、childの戻り値とremoveの戻り値が違います。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;remove (<span class="stringliteral">&#39;array&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;removeに配列指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;array&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;removeに配列指定時、childの戻り値とremoveの戻り値が違います。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;remove (<span class="stringliteral">&#39;object&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;removeにオブジェクト指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;object&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;removeにオブジェクト指定時、childの戻り値とremoveの戻り値が違います。&#39;</span>);
                
                $child = $this-&gt;obj-&gt;remove (<span class="stringliteral">&#39;function&#39;</span>);
                $this-&gt;assertIdentical($child-&gt;getName(), <span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;removeに関数指定時、戻り値のgetNameの値が間違っています。&#39;</span>);
                $this-&gt;assertTrue($this-&gt;obj-&gt;child(<span class="stringliteral">&#39;function&#39;</span>)-&gt;isEmpty(), <span class="stringliteral">&#39;removeに関数指定時、childの戻り値とremoveの戻り値が違います。&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="adbac3f4e879c7c1ad0b8c9fb14aa1706"></a><!-- doxytag: member="TestofYuToriFactory::TestofScalar" ref="adbac3f4e879c7c1ad0b8c9fb14aa1706" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofScalar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00069">69</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a1d6b3a57ecf0640eb020de6a3c194813"></a><!-- doxytag: member="TestofYuToriFactory::TestofY_Array" ref="a1d6b3a57ecf0640eb020de6a3c194813" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofY_Array </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00215">215</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                        {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2));
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, array(0,1,2));

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2), <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, array(0,1,2));

                <span class="comment">// 第三引数は共通化できないので個別で。</span>
                $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2),(<span class="stringliteral">&#39;testName&#39;</span>));
                $arr = array(0,1,2);
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($obj, null, $arr);
                $this-&gt;assertIdentical($res = $y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;count() , 6, <span class="stringliteral">&#39;child数判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;get値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;call() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;call値判定&#39;</span>);
                $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a09ec4d72fa0f23b2e2f5ed9ae99cb2a2"></a><!-- doxytag: member="TestofYuToriFactory::TestofY_Bool" ref="a09ec4d72fa0f23b2e2f5ed9ae99cb2a2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofY_Bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00195">195</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a4f789c08771e5bea31cb0daf0d26e9ee"></a><!-- doxytag: member="TestofYuToriFactory::TestofY_Null" ref="a4f789c08771e5bea31cb0daf0d26e9ee" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofY_Null </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00205">205</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                       {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aa827132b9c5ce5db3b1bf4d083e27688"></a><!-- doxytag: member="TestofYuToriFactory::TestofY_Object" ref="aa827132b9c5ce5db3b1bf4d083e27688" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofY_Object </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00234">234</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                         {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass());
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass(), <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass(), <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ab4c436dc23938f6013cdf23c7412f85a"></a><!-- doxytag: member="TestofYuToriFactory::TestofY_Scalar" ref="ab4c436dc23938f6013cdf23c7412f85a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TestofY_Scalar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p> <a class="el" href="../../df/dfb/factory_8php_source.html">factory.php</a> の <a class="el" href="../../df/dfb/factory_8php_source.html#l00185">185</a> 行で定義されています。</p>
<div class="fragment"><pre class="fragment">                                         {
                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);

                $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;testName&#39;</span>);
                $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);
        }
</pre></div>
</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全て</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>データ構造</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>関数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>変数</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>YuTori Classに対してMon May 21 2012 00:22:17に生成されました。&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
